home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 38 / sgn_bans.zip / SIGNMAKR.DOC < prev    next >
Text File  |  1986-10-01  |  18KB  |  605 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                LINCOMATIC BANNER AND KSET MANAGER DOCUMENTATION
  8.          -------------------------------------------------------------
  9.  
  10.          INTRODUCTION:  This package will allow you to make fancy
  11.          signs with your printer.
  12.  
  13.  
  14.          SUPPLIED FILES:
  15.  
  16.                   BANNER.COM  The banner maker program
  17.                   KSMGR .COM  The KSET manager program
  18.                        *.KSE  various KSETs for your enjoyment
  19.  
  20.  
  21.          TABLE OF CONTENTS
  22.          -----------------
  23.  
  24.          I.   LINCOMATIC BANNER MAKER ................... 2
  25.          II.  LINCOMATIC KSET MANAGER ................... 3
  26.          III. KSET FILE FORMAT .......................... 6
  27.          IV.  ACKNOWLEDGEMENTS .......................... 8
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                         1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.            _          _      _
  74.          I. LINCOMATIC BANNER MAKER
  75.          __ __________ ______ _____
  76.  
  77.              The LINCOMATIC BANNER MAKER is a program which allows you
  78.          to make signs which can be printed on any printer.  Unlike
  79.          some other sign-maker programs, you can choose among many
  80.          different fonts (KSET's) or even create your own.  To
  81.          start the LINCOMATIC BANNER MAKER type
  82.  
  83.          BANNER
  84.          BANNER
  85.          BANNER
  86.  
  87.          First, you will be prompted for a KSET file.  KSET files are
  88.          files which contain various type fonts for the program to
  89.          use.  All of the files with extension .KSE are KSET files.
  90.          Try BDR30 to start (this is one of my favorites).
  91.  
  92.  
  93.          KSET file [.KSE]: BDR30
  94.          KSET file [.KSE]: BDR30
  95.          KSET file [.KSE]: BDR30
  96.  
  97.          Note that you do not have to type the .KSE extension; the
  98.          program will fill it in for you.  Next, you will be prompted
  99.          for an output file
  100.  
  101.  
  102.          Output file:
  103.          Output file:
  104.          Output file:
  105.  
  106.          You can specify any file name you wish.  Be sure not to
  107.          specify a file name which already exists, because its
  108.          contents will be overwritten.  To output directly to your
  109.          printer turn on your printer, and enter 'prn'.  Or you can
  110.          view the banner on your screen by typing 'con'.  Next, you
  111.          will be asked
  112.  
  113.  
  114.          Change fill characters (y/n)?
  115.          Change fill characters (y/n)?
  116.          Change fill characters (y/n)?
  117.  
  118.          If you answer 'n' your banner will be composed of '*' and
  119.          spaces.  You can change these characters to suit your tastes
  120.          by answering 'y'.  Finally, you will be asked to enter a line
  121.          of text
  122.  
  123.  
  124.          Enter a line of text up to 132 characters
  125.          Enter a line of text up to 132 characters
  126.          Enter a line of text up to 132 characters
  127.  
  128.          Type in the words you want and press return.  The program
  129.          will keep you posted on its progress and tell you when it's
  130.          done.  Experiment with all the different KSET's.  Try setting
  131.          your printer for compressed type, wide type, etc.  The
  132.          possibilities are endless.
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.                                         2
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.             _          _    _
  156.          II. LINCOMATIC KSET MANAGER
  157.          ___ __________ ____ _______
  158.  
  159.  
  160.               The LINCOMATIC KSET MANAGER is included so that you can
  161.          alter or create your own KSET (font) files.  To start the
  162.          KSET manager, type
  163.  
  164.          KSMGR
  165.          KSMGR
  166.          KSMGR
  167.  
  168.          You will then get a menu as follows:
  169.  
  170.          <0> Info about this program
  171.          <1> Dump a KSET into a text file
  172.          <2> Convert a text file into a KSET
  173.          <3> Exit to DOS
  174.  
  175.  
  176.  
  177.          1. Dump a KSET file into a text file
  178.          __ ____ _ ____ ____ ____ _ ____ ____
  179.  
  180.          Selecting   will allow you to convert a binary KSET file into
  181.                    1
  182.                    1
  183.                    1
  184.          a text file composed of the pictures contained in the KSET.
  185.          You can then put the text file into your favorite ASCII
  186.          editor and alter or add characters as you wish.  Then, you
  187.          can use selection   to convert the text file back into a
  188.                            2
  189.                            2
  190.                            2
  191.          KSET.
  192.  
  193.          Say you want to see what the pictures in BDR30.KSE look like.
  194.          First, select  .  You will then be prompted for the KSET
  195.                        1
  196.                        1
  197.                        1
  198.          file:
  199.  
  200.  
  201.          KSET file [.KSE]:
  202.          KSET file [.KSE]:
  203.          KSET file [.KSE]:
  204.  
  205.          to which you type BDR30.  The program will then proceed to
  206.          dump the KSET into a file called BDR30.PIC (MAKE SURE YOU
  207.          HAVE LOTS OF SPACE ON YOUR DISK!  .PIC FILES ARE BIG).  The
  208.          program will keep you posted on which character it is
  209.          currently working.  When the program is done, exit by
  210.          selecting   from the main menu and put the file into a text
  211.                    3
  212.                    3
  213.                    3
  214.          editor, say EDLIN or PC-WRITE.
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.                                         3
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.          The beginning of the file will look something like this:
  245.  
  246.  
  247.          31                               pictures are 31 dots tall
  248.          ^A   14                          this pic of ^A is 14 dots
  249.          ...........**..................  wide
  250.          ..........***..................
  251.          .........***...................
  252.          ........***....................
  253.          .......***.....................
  254.          ......**********************...
  255.          ......**********************...
  256.          .......***.....................   this picture is 31 dots
  257.          ........***....................   tall and 14 dots wide
  258.          .........***...................   (looking sideways)
  259.          ..........***..................
  260.          ...........**..................
  261.          ...............................
  262.          ...............................
  263.          ~
  264.          ^B   26
  265.          .........*****.................
  266.          ........*******................
  267.          .......**.....**...............
  268.          ......**.......**..............
  269.          ......**.......**..............
  270.          ......**.......**..............
  271.          ......**.......**..............
  272.          ......**.......**..............
  273.          .......**.....**...............
  274.          ........**....**...............
  275.          ........**...**................
  276.          .........******................
  277.          ..........****.................
  278.          ........******.................
  279.          .......***.****................
  280.          ......**....****...............
  281.          ......**.....****..............
  282.          ......**.......****............
  283.          ......**.........***...........
  284.          ......**..........***..........
  285.          ......**............**.........
  286.          .......**............*.........
  287.          ........*......................
  288.          ...............................
  289.          ...............................
  290.          ...............................
  291.          ~
  292.  
  293.          Note that the pictures are all rotated 90 degrees as they are
  294.          when you make them with BANNER.  There are some rules to the
  295.          .PIC files.
  296.  
  297.  
  298.                                         4
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.           (1) The first line of the file contains the height of the
  309.               pictures in the KSET.
  310.           (2) The first line of a picture description is the character
  311.               it represents followed by the width of the picture in
  312.               dots.
  313.           (3) Next is the picture
  314.           (4) A picture definition is terminated by a '~'.
  315.  
  316.          In our example (which is part of a dump of BDR30.KSE), the
  317.          first line of the file is 31, meaning all of the pictures in
  318.          this KSET are 31 dots high.  Next is the picture which
  319.          corresponds to ^A (ASCII 01).  The picture is 14 dots wide
  320.          and the dot pattern is a 31 x 14 matrix representing a down-
  321.          arrow.  Note that the picture is terminated with a '~'.  The
  322.          next picture corresponds to ^B (ASCII 02), and it is a
  323.          31 x 26 dot picture of the Greek letter alpha.
  324.  
  325.          You can define any ASCII character from 0-127.  To represent
  326.          a space (ASCII 32), you can use    or   .  DEL (ASCII 127) is
  327.                                          sp    SP
  328.                                          sp    SP
  329.                                          sp    SP
  330.          denoted by   .  You can alter a .PIC file or create your own,
  331.                     ^?
  332.                     ^?
  333.                     ^?
  334.          then convert it to a KSET using the next option:
  335.  
  336.  
  337.  
  338.  
  339.          2.  Convert a text file into a KSET
  340.          __  _______ _ ____ ____ ____ _ ____
  341.  
  342.          Selecting   from the main menu allows you to convert a .PIC
  343.                    2
  344.                    2
  345.                    2
  346.          file of dots and asterisks into a KSET.
  347.  
  348.          REMEMBER: You MUST use an ASCII text editor, and tabs are NOT
  349.          allowed in the .PIC file.
  350.  
  351.          You will be prompted for a .PIC file, and then the program
  352.          will make a KSET file with the same name and the .KSE
  353.          extension.  (i.e if you enter BDR30, the program will convert
  354.          BDR30.PIC and make a file called BDR30.KSE).  NOTE: This
  355.          program will overwrite existing files, so if you already have
  356.          a .KSE file with the same name as the .PIC file on your disk,
  357.          it will be overwritten.  Therefore, it is a good idea to
  358.          first copy any .KSE files you are experimenting with to
  359.          another disk so you have a backup in case you screw up.
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.                                         5
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.              _    _    _
  386.          III. KSET FILE FORMAT
  387.          ____ ____ ____ ______
  388.  
  389.               For those of you who are technically minded, and wish to
  390.          create new applications for the KSET files, here is the
  391.          internal format:
  392.  
  393.             KSET files are composed of records of 16-bit integers
  394.          (2-byte words stored in reverse-byte order, i.e. LSB first)
  395.          The records of the file are numbered sequentially starting
  396.          from 0.  The records are organized as follows:
  397.  
  398.          The first 131 records of the file are reserved for a data
  399.          table:
  400.  
  401.          record 0: the size of this KSET file in records
  402.          record 1: the height of this KSET in pixels
  403.          record 3: the width in pixels of the largest picture in
  404.                    this KSET
  405.          records 4-131: file position pointers to the pixel data for
  406.                         the ASCII characters 0-127.
  407.  
  408.          The rest of the file is free-form pixel data for the pictures
  409.          in the KSET.  The first record of each picture is the width
  410.          of the picture, followed by the bits which make up the
  411.          picture.  This probably all sounds very confusing, so I will
  412.          give an example.  You can use a                 in Pascal to
  413.                                          file of integer
  414.                                          file of integer
  415.                                          file of integer
  416.          read the KSET files.  We will use the file BDR30.KSE.  The
  417.          first 3 records of this file are:
  418.  
  419.               record 0 = 4107
  420.               record 1 = 31
  421.               record 2 = 28
  422.  
  423.          This means that the file is 4107 records long, the height of
  424.          the pictures contained in it is 31 pixels high, and the
  425.          widest picture in the KSET is 28 pixels wide (pictures within
  426.          a KSET can vary in width, but they are all the same height).
  427.          Let's get the pixels for the number '2' (ASCII 51).  51+3=54,
  428.          so the pointer is record 54 in the file. We find
  429.  
  430.            record 54 = 1630
  431.  
  432.          This means the data for '2' starts at file position 1630.  We
  433.          seek to position 1630 in the file, and find
  434.  
  435.            record 1630 = 14
  436.  
  437.          This means the picture for '2' is 14 pixels wide.  So we need
  438.          31 X 14 (height X width) = 434 bits to make the picture.
  439.          This means the next 434 / 16 = 27.125 = 28 words in the file
  440.          contain the bits we need.  The next 28 records in the file
  441.          are:
  442.  
  443.          decimal=  hex =      binary      = pattern( '.'=0,'*'=1)
  444.  
  445.  
  446.                                         6
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.          ---------------------------------------------------
  457.          896    = 0380 = 0000001110000000 = ......***.......
  458.          0      = 0000 = 0000000000000000 = ................
  459.          1920   = 0780 = 0000011110000000 = .....****.......
  460.          16256  = 3F80 = 0011111110000000 = ..*******.......
  461.          3968   = 0F80 = 0000111110000000 = ....*****.......
  462.          32640  = 7F80 = 0111111110000000 = .********.......
  463.          7040   = 1B80 = 0001101110000000 = ...**.***.......
  464.          -31872 = 8380 = 1000001110000000 = *.....***.......
  465.          13184  = 3380 = 0011001110000000 = ..**..***.......
  466.          768    = 0300 = 0000001100000000 = ......**........
  467.          24960  = 6180 = 0110000110000000 = .**....**.......
  468.          1536   = 0600 = 0000011000000000 = .....**.........
  469.          -1600  = C180 = 1100000110000000 = **.....**.......
  470.          3073   = 0C01 = 0000110000000001 = ....**.........*
  471.          -32384 = 8180 = 1000000110000000 = *......**.......
  472.          14339  = 3803 = 0011100000000011 = ..***.........**
  473.          511    = 01FF = 0000000111111111 = .......*********
  474.          -8185  = E007 = 1110000000000111 = ***..........***
  475.          511    = 01FF = 0000000111111111 = .......*********
  476.          15     = 000F = 0000000000001111 = ............****
  477.          -32768 = 8000 = 1000000000000000 = *...............
  478.          0      = 0000 = 0000000000000000 = ................
  479.          0      = 0000 = 0000000000000000 = ................
  480.          0      = 0000 = 0000000000000000 = ................
  481.          0      = 0000 = 0000000000000000 = ................
  482.          0      = 0000 = 0000000000000000 = ................
  483.          0      = 0000 = 0000000000000000 = ................
  484.          0      = 0000 = 0000000000000000 = ................
  485.  
  486.  
  487.  
  488.          If we arrange these bits in 14 rows of 31 bits and discard
  489.          any excess bits, we get
  490.  
  491.  
  492.          ......***......................
  493.          ......****.........*******.....
  494.          ......*****........********....
  495.          ......**.***.......*.....***...
  496.          ......**..***.............**...
  497.          ......**....**............**...
  498.          ......**.....**...........**...
  499.          ......**......**.........***...
  500.          ......**.......************....
  501.          ......***.......*********......
  502.          ......*****....................
  503.          ...............................
  504.          ...............................
  505.          ...............................
  506.  
  507.  
  508.          Viola!  Hope this example helps.
  509.  
  510.  
  511.  
  512.                                         7
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.             _
  523.          IV. ACKNOWLEDGEMENTS
  524.          ___ ________________
  525.  
  526.              These programs are distributed in the manner that the
  527.          'Freeware' concept should be; they are literally free!  No
  528.          strings attached.  Copy 'em, distribute them; just please do
  529.          not distribute altered copies, and PLEASE do not sell them!
  530.          You got it for free, so others should, too.
  531.  
  532.              Thanks to Michael Rubin for inspiring me with his
  533.          programs KSMAKE and KSDUMP.  Any suggestions or comments
  534.          should be sent to
  535.  
  536.                         Sam Lin
  537.                         7709 Beech Tree Road
  538.                         Bethesda, MD   20817
  539.  
  540.          If you want a reply you MUST INCLUDE A SELF-ADDRESSED STAMPED
  541.          ENVELOPE.  I would like some input on what features to add on
  542.          future versions (if there is sufficient interest).  Also, if
  543.          you create an interesting KSET of your own, please send me a
  544.          copy of it so I can include it with future releases.
  545.          Finally, please let me know of any other interesting
  546.          applications you think of for KSET's.  Enjoy.
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.                                         8
  581.  
  582.  
  583.  
  584.  
  585.          ----------------end-of-author's-documentation---------------
  586.  
  587.                    This disk copy provided as a service of
  588.  
  589.                         The Public (Software) Library
  590.  
  591.          For a copy of the latest monthly software library newsletter
  592.           and a list of the 600+ disks in the library, call or write
  593.  
  594.                         The Public (Software) Library
  595.                                 P.O.Box 35705
  596.                            Houston, TX 77235-5705
  597.                                (713) 721-6104
  598.  
  599.          Please direct shareware payments and specific questions about
  600.          this program to the author of the program, whose name appears
  601.          elsewhere in  this documentation.   Please let us know if the
  602.          author does not respond.  We will do whatever  we can to help
  603.          you with your questions.
  604.  
  605.